import {
  Table,
  TableBody,
  TableCell,
  TableRow,
} from "@/components/ui/table"
/**
 * 系统信息组件接口定义
 */
interface SystemInfoProps {
  /** 系统信息数据对象 */
  data: {
    [key: string]: unknown;
    workerman_version?: string;
    webman_version?: string;
    admin_version?: string;
    php_version?: string;
    mysql_version?: string;
    os?: string;
  };
}
export function SystemInfo({ data }: SystemInfoProps) {
  return (
    <Table>

      <TableBody>
        <TableRow >
          <TableCell className="font-medium">Workerman</TableCell>
          <TableCell>{data?.workerman_version}</TableCell>
        </TableRow>
        <TableRow >
          <TableCell className="font-medium">Webman</TableCell>
          <TableCell>{data?.webman_version}</TableCell>
        </TableRow>
        <TableRow >
          <TableCell className="font-medium">TmAdmin</TableCell>
          <TableCell>{data?.admin_version}</TableCell>
        </TableRow>
        <TableRow >
          <TableCell className="font-medium">PHP</TableCell>
          <TableCell>{data?.php_version}</TableCell>
        </TableRow>
        <TableRow >
          <TableCell className="font-medium">MYSQL</TableCell>
          <TableCell>{data?.mysql_version}</TableCell>
        </TableRow>
        <TableRow >
          <TableCell className="font-medium">OS</TableCell>
          <TableCell>{data?.os}</TableCell>
        </TableRow>
      </TableBody>

    </Table>
  )
}
